<% @page_title = "编辑话题 | 多背一公斤 - 灾后学校重建计划" -%>

<% content_for :sidebar do -%>
  <h2><%= link_to "不修改了，返回", topic_url(@group.id, @topic.id) %></h2>
  <h2><%= link_to "返回#{@group.title}小组", group_url(@group.id) %></h2>
<% end -%>

<h1>编辑话题</h1>
<% form_for :topic, :url => topic_url(@group.id, @topic.id), :html => {:method => 'put'} do |f| -%>
  <%= render :partial => "form", :object => f %>
  <%= submit_tag "改好了，提交" %>
<% end -%>